

//constructor 
function AdminPrivate(variable){   
    this.referenceExcl=variable;    
}

AdminPrivate.prototype.button_clicked=function ()
{    
	PageMethods.SendMessage($get("txtMsg").value,$get("hdnRoomID").value,$get("hdnReceiver").value,this.void, this.errorCallback);
	$get("txtMsg").value="";	
}
AdminPrivate.prototype.clickButton=function(e, buttonid)
{ 
	var bt = document.getElementById(buttonid); 
	if (typeof bt == 'object')
		{ 
			if(navigator.appName.indexOf("Netscape")>(-1))
			{ 
			    if (e.keyCode == 13)
			    { 
				    bt.click(); 
				    return false; 
			    } 
		    } 
	    if (navigator.appName.indexOf("Microsoft Internet Explorer")>(-1))
		    { 
			    if (event.keyCode == 13)
			    { 
			        bt.click(); 
				    return false; 
			    } 
		    } 
	    }	 
} 
	
AdminPrivate.prototype.void=function(result){
}


AdminPrivate.prototype.errorCallback=function(result)
{
	alert("An error occurred while invoking the remote method: " 
	+ result);
}



var APrivate=new AdminPrivate("APrivate");		